package com.example.xgakj.newterminal.adapter;

import android.content.Context;
import android.widget.TextView;

import com.example.xgakj.newterminal.R;
import com.example.xgakj.newterminal.beans.AlarmTable;


/**
 * Created by Lzx on 2016/12/30.
 */

public class DataAdapter extends ListBaseAdapter<AlarmTable> {

    public DataAdapter(Context context) {
        super(context);
    }

    @Override
    public int getLayoutId() {
        return R.layout.alarmrecord_item;
    }

    @Override
    public void onBindItemHolder(SuperViewHolder holder, int position) {
        AlarmTable item = mDataList.get(position);

        TextView titleText = holder.getView(R.id.alarm_title);
        TextView dateTime = holder.getView(R.id.alarm_dateTime);
        TextView type = holder.getView(R.id.alarm_type);
        TextView see_state = holder.getView(R.id.see_state);
        titleText.setText(item.getJqneirong());
        dateTime.setText(item.getDateon());
        type.setText(item.getNote());
        see_state.setText(item.getNote());
    }
}
